package com.gzy.android_douban.application;

import android.app.Application;
import androidx.viewbinding.BuildConfig;
import com.gzy.network.INetworkRequiredInfo;

/**
 * @author : guzy
 * @program: net-app
 * @description:网络访问信息
 * @date : 2022-03-24 12:23
 **/
public class NetworkRequiredInfo implements INetworkRequiredInfo {

  private Application application;

  public NetworkRequiredInfo(Application application){
    this.application = application;
  }

  /**
   * 版本名
   */
  @Override
  public String getAppVersionName() {
    return "1";
  }
  /**
   * 版本号
   */
  @Override
  public String getAppVersionCode() {
    return "1.0";
  }

  /**
   * 是否为debug
   */
  @Override
  public boolean isDebug() {
    return BuildConfig.DEBUG;
  }

  /**
   * 应用全局上下文
   */
  @Override
  public Application getApplicationContext() {
    return application;
  }
}
